<?php

namespace App\Models\hwtc;

use Illuminate\Database\Eloquent\Model;

class Customer extends Model
{
    protected $table = 'customers';
    protected $guarded = ['api_name','api_pwd'];
//    public $timestamps = false;

    public function user()
    {
        return $this->belongsTo('App\User');
    }

    //客户、工厂和customer表一一对应
    public function apiuser(){
        return $this->hasMany('App\Models\hwtc\Apiuser');
    }
}
